import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import UserView from '@/views/User/UserView.vue'
import { children } from './childen'
export const routes: Array<RouteRecordRaw> = [
  {
    path: '/', redirect: '/dashboard'
  },
  {
    path: '/',
    name: 'home',
    component: HomeView,
    meta: {
      requiresAuth: true,
    },
    children: children
  },
  {
    path: '/user', component: UserView, meta: {
      requiresAuth: false,
    },
  }
]
